
<?php
$aProducts = $this->aDisplayedContent['content'];
$aProductImages = $this->aDisplayedContent['productImages'];
if(is_array($aProducts)){
    foreach($aProducts as $aProduct){
        ?>
<h2><a
	href="index.php?co=product&category=<?=$aProduct['category']?>&id=<?=$aProduct['pid']?>"><?=$aProduct['name']?></a></h2>
<div><?=$aProduct['short_description']?><br></div>
<style>
.galleria {
	height: 300px;
	background: #000;
	padding-bottom: 30px;
}
</style>
<div class="galleria">
<?php foreach($aProductImages[$aProduct['pid']] as $aImage){
    $sImage = $aImage['link'];
    echo "<a href='../image/$sImage'><img src=../image/thumbs/$sImage></a>";}?>
	
</div>

        <?php }?>
<script>
    Galleria.loadTheme('../js/galleria/themes/classic/galleria.classic.min.js');
    Galleria.run('.galleria', {
    	thumbCrop: false,
    	lightbox: true
    });
    </script>
        <?php }else{$sText=$this->aDisplayedContent['content']; echo "<p>$sText</p>";}?>

